package scjp.threads.machineoperator;

public class Operator extends Thread {

    Machine machine; //assume this gets initialized

    @Override
    public void run() {

        while (true) {

            Shape shape = getShapeFromUser();
            MachineInstructions job = calculateNewInstructionsFor(shape);
            machine.addJob(job);

        }
    }

    private MachineInstructions calculateNewInstructionsFor(Shape shape) {
        return new MachineInstructions();
    }

    private Shape getShapeFromUser() {
        return new Shape();
    }
}
